
/* eslint-disable */ 
let _apps = []
import {rewiteRouter}  from './rewite-router'

import {handleRouter} from './handle-router'

export const getApps = ()=> _apps
// 注册子应用
export const registerMicroApps = (apps) => {
  _apps = apps
}

export const start = () => {
    // 原理
    //  1.监视路由变化
    // hash  window.onhashchange
    // history  popstate    pushState 
    rewiteRouter()
    // 初始化执行
    handleRouter()
}
